package com.rh.manage.event;

import com.rh.manage.annotation.ComponentBean;
import com.rh.manage.constants.FrameCategoryEnum;
import com.rh.manage.controller.MainFrameController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;

@ComponentBean(FrameCategoryEnum.PRO_MANAGE)
public class MainFrameEvent {

    @Autowired
    private MainFrameController mainFrameController;

    /**
     * 打开思维导图app
     */
    @Async
    public void openMindApp() {
        mainFrameController.openMindApp();
    }

    /**
     * 保存配置
     */
    public void saveConfig() {
        mainFrameController.saveConfig();
    }

    /**
     * git同步
     */
    public void gitSync() {
        mainFrameController.gitSync();
    }
}
